# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=blisqy
pkgver=20.e9995fc
pkgrel=5
pkgdesc='Exploit Time-based blind-SQL injection in HTTP-Headers (MySQL/MariaDB).'
groups=('blackarch' 'blackarch-webapp' 'blackarch-exploitation')
arch=('any')
url='https://github.com/JohnTroony/Blisqy'
license=('custom:unknown')
depends=('python')
makedepends=('git')
source=("$pkgname::git+https://github.com/JohnTroony/Blisqy.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md

  rm README.md

  cp -a * "$pkgdir/usr/share/$pkgname/"
}

